/*
 * Copyright 2018 Zhongan.com All right reserved. This software is the
 * confidential and proprietary information of Zhongan.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Zhongan.com.
 */

package bean;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author dongchuan
 * @date 2022/7/22 10:26
 */
public class MyFactoryBean implements FactoryBean<PolicyDO> {

	@Override
	public PolicyDO getObject() throws Exception {
		PolicyDO policyDO = new PolicyDO();
		policyDO.setPolicyNo("xxxxxxxx");
		return policyDO;
	}

	@Override
	public Class<?> getObjectType() {
		return PolicyDO.class;
	}

	@Override
	public boolean isSingleton() {
		return true;
	}
}
